ISlave.AoeWriteSdoObject 方法

使用 AoE (ADS over EtherCAT) SDO 方法將資料寫入從站。

命名空間IntervalZero.KINGSTAR.Base.Class

組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

語法

C#VB
IKsCommand AoeWriteSdoObject(
       int port,
       int obIndex,
       int obSubIndex,
       bool completeAccess,
       byte[] value
)
Function AoeWriteSdoObject(
       port As Integer,
       obIndex As Integer,
       obSubIndex As Integer,
       completeAccess As Boolean,
       value As Byte()
) As IKsCommand

參數

port

型別:int

EtherCAT 從站埠。

 

obIndex

型別:int

欲在物件字典中讀取的物件索引。

 

obSubIndex

型別:int

欲在物件字典中讀取的物件子索引。

 

completeAccess

型別:bool

true:寫入所有子索引;false:寫入單一子索引。

 

value

型別:byte[]

緩衝區的指標,緩衝區包含欲寫入的值。

回傳值

型別:IKsCommand

回傳一個方法的狀態。

可用的 EtherCAT 狀態

ecatPreOP, ecatSafeOP, ecatOP

參見

ISlave 介面

IntervalZero.KINGSTAR.Base.Class 命名空間